package ca.ericslandry.shared.rpc;

import net.customware.gwt.dispatch.shared.Result;
import ca.ericslandry.shared.domain.User;

public class CheckSessionResult implements Result {
	private static final long serialVersionUID = -4785233314922498952L;
	boolean valid = false;

	public CheckSessionResult() {
	}

	private User user;

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public boolean isValid() {
		return user != null;// && user.getAuthenticated();
	}
}
